<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ taglib uri="/mytag" prefix="yjd"%>
<div class="wrap" >
    <div class="nav">
        <div class="return">
            <a href='<yjd:url url="/project/all"/>'>返回上一页</a>
         </div>
    </div>
    <div class="h_a">配置利率[${project_name}]</div>
    <!-- start -->
    <form method="post" class="J_ajaxForm" autocomplete="off" action='<yjd:url url="/project/rateSave"/>'>
       <input type="hidden" name="prject_id" value="${project_id}" />
        <div class="table_full">
            <table width="100%">
                <thead>
                <tr>
                    <td>期数</td>
                    <td>利率</td>
                </tr>
                </thead>
                <tbody>
                <c:set var="i" value="0" />
                <c:forEach items="${periodsList }" var="item">
                    <tr>
                        <td><input type="hidden" class="input length_3"
                                   name="rateList[${i }].limit" value="${item.limit }" /> ${item.limit }</td>
                        <td><input type="text" class="input length_4" name="rateList[${i }].rate" value="${item.rate }" /></td>
                    </tr>
                    <c:set var="i" value="${i+1 }" />
                </c:forEach>
                </tbody>
            </table>
        </div>
        <input class="btn btn_submit J_ajax_submit_btn" type="submit" value="确认保存">
    </form>
</div>

